# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=c-dvar
pkgver=1.0.0
pkgrel=0
pkgdesc="D-Bus Variant Type-System"
url="https://github.com/c-util/c-dvar"
arch="all"
license="Apache-2.0 OR LGPL-2.1-or-later"
makedepends="
	c-stdaux-dev~=1
	c-utf8-dev~=1
	meson
	"
subpackages="$pkgname-dev"
source="https://github.com/c-util/c-dvar/archive/v$pkgver/c-dvar-$pkgver.tar.gz"

build() {
	abuild-meson . output
	meson compile -j ${JOBS:-0} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
a11e9cd9c5decbcc46a6ed825449c34777a8307b0cbefc864fc32cf2d063a32fc9970571caa69692bb4cc0492c1a872d0ffd332b7118d85289db1f26bb8c5644  c-dvar-1.0.0.tar.gz
"
